Skip to content

Conversation

@axw
Copy link
Contributor

@axw axw commented Apr 7, 2025

Description

Add support for iterating over the client metadata keys.

At the moment it is only possible to get the values for a known key, which makes it impossible to inspect metadata keys without prior knowledge of all possible keys, e.g. as described in open-telemetry/opentelemetry-collector-contrib#39157.

Link to tracking issue

Closes #12804

Testing

Trivial addition, added unit tests.

Documentation

N/A

Add support for discovering the client metadata keys.
At the moment it is only possible to get the values for a known key.

Closes open-telemetry#12804
@codecov
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.43%. Comparing base (564818f) to head (766c6fb).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12805   +/-   ##
=======================================
  Coverage   91.43%   91.43%           
=======================================
  Files         487      487           
  Lines       26808    26810    +2     
=======================================
+ Hits        24511    24513    +2     
  Misses       1814     1814           
  Partials      483      483           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@axw axw marked this pull request as ready for review April 7, 2025 08:50
@axw axw requested a review from a team as a code owner April 7, 2025 08:50
@axw axw requested a review from atoulme April 7, 2025 08:50
Copy link
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have assumed this was an intentional restriction, in the past. ;)

@mx-psi mx-psi added this pull request to the merge queue Apr 10, 2025
Merged via the queue into open-telemetry:main with commit 3068122 Apr 10, 2025
74 checks passed
@axw axw deleted the client-metadata-keys branch April 10, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

client: add support for iterating client metadata keys

5 participants